#!/usr/bin/env python
from django.core.management import execute_manager
import imp
try:
    imp.find_module('settings') # Assumed to be in the same directory.
except ImportError:
    import sys
    msg = "Error: Can't find the file 'settings.py' in the directory containing"
    msg += " %r. It appears you've customized things.\n" % __file__
    msg += "You'll have to run django-admin.py, passing"
    msg  += " it your settings module.\n" 
    sys.stderr.write()
    sys.exit(1)

import settings

if __name__ == "__main__":
    execute_manager(settings)
